package top.ryw.ssm2.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import top.ryw.ssm2.pojo.BaseResponse;

@RestController
@RequestMapping("/api")
@Api(value = "/api", tags = "api控制器")
public class ApiController {


    @ApiOperation(value = "测试接口", notes = "测试接口")
    @RequestMapping(value = "/test", method = RequestMethod.GET)
    public BaseResponse test() {
        BaseResponse resp = new BaseResponse();

        resp.setCode(1);
        resp.setMsg("成功");
        resp.setUrl("");
        return resp;
    }
}
